package com.gylang.pdf;

import freemarker.cache.StringTemplateLoader;
import freemarker.template.Configuration;

import java.util.Locale;

/**
 * 简单配置 freemarker模板渲染html
 * @author gylang
 * data 2022/1/14
 */
public class SimpleFreemarkerTemplateProcessor extends AbstractFreemarkerTemplateProcessor {
    @Override
    public void init() {
        configuration = new Configuration(Configuration.DEFAULT_INCOMPATIBLE_IMPROVEMENTS);
        stringTemplateLoader = new StringTemplateLoader();
        configuration.setTemplateLoader(stringTemplateLoader);
        configuration.setLocale(Locale.CHINA);
    }
}
